#ifndef CSMTextSettings_H
#define CSMTextSettings_H

namespace swfstream {
class CSMTextSettings: public Tag {
public:
	uint16 TextID; ///< UI16 ID for the DefineText, DefineText2, or DefineEditText to which this tag applies.
	uint8 UseFlashType; ///< UB[2] 0 = use normal renderer.1 = use advanced text rendering engine.
	uint8 GridFit; ///< UB[3] 0 = Do not use grid fitting. AlignmentZones and LCD sub-pixel information will not be used.1 = Pixel grid fit. Only supported for left-aligned dynamic text. This setting provides the ultimate in advanced anti-aliased text readability, with crisp letters aligned to pixels.2 = Sub-pixel grid fit. Align letters to the 1/3 pixel used by LCD monitors. Can also improve quality for CRT output.
	//	uint8 Reserved;///< UB[3] Must be 0.
	float Thickness; ///< F32 The thickness attribute for the associated text field. Set to 0.0 to use the default (anti-aliasing table) value.
	float Sharpness; ///< F32 The sharpness attribute for the associated text field. Set to 0.0 to use the default (anti-aliasing table) value.
	//	uint8 Reserved2;///< UI8 Must be 0.
	static CSMTextSettings* from_file(FILE* f);
	void print();
};
}

#endif
